From d4d4227dfb2fefa56ded8ff5897469459f56b069 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 2 Feb 2023 17:13:12 +0700 Subject: no message --- src/pages/my/invoice/[id].js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/pages/my/invoice/[id].js') diff --git a/src/pages/my/invoice/[id].js b/src/pages/my/invoice/[id].js index c1cacfc6..d13cf7a6 100644 --- a/src/pages/my/invoice/[id].js +++ b/src/pages/my/invoice/[id].js @@ -46,6 +46,10 @@ export default function DetailInvoice() { ); }; + const downloadTaxInvoice = () => { + window.open(`${process.env.ODOO_HOST}/api/v1/download/tax-invoice/${invoice.id}/${invoice.efaktur_token}`, '_blank') + } + return ( @@ -59,9 +63,9 @@ export default function DetailInvoice() { { invoice?.amount_residual > 0 ? ( - Belum Lunas + Belum Lunas ) : ( - Lunas + Lunas ) } @@ -81,6 +85,17 @@ export default function DetailInvoice() { { invoice?.invoice_date } +
+

Faktur Pajak

+ +
-- cgit v1.2.3